<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>VIP会员表格</title>
  <!-- 引入 UnoCSS -->
  <script src="https://cdn.jsdelivr.net/npm/@unocss/runtime"></script>
  <style>
    body {
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
      background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
      min-height: 100vh;
      display: flex;
      justify-content: center;
      align-items: center;
      padding: 20px;
      margin: 0;
    }
    
    .container {
      max-width: 1200px;
      width: 100%;
    }
    
    .header {
      text-align: center;
      margin-bottom: 30px;
    }
    
    .header h1 {
      color: #2c3e50;
      font-size: 2.5rem;
      margin-bottom: 10px;
      text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
    }
    
    .header p {
      color: #7f8c8d;
      font-size: 1.2rem;
      max-width: 600px;
      margin: 0 auto;
    }
    
    .card {
      background: white;
      border-radius: 12px;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
      overflow: hidden;
    }
    
    .table-container {
      overflow-x: auto;
    }
    
    table {
      width: 100%;
      border-collapse: collapse;
      min-width: 800px;
    }
    
    th {
      background: #3498db;
      color: white;
      font-weight: 600;
      text-align: left;
      padding: 16px 20px;
      position: sticky;
      top: 0;
    }
    
    td {
      padding: 14px 20px;
      border-bottom: 1px solid #ecf0f1;
    }
    
    .vip-cell {
      background: rgba(52, 152, 219, 0.1);
      font-weight: bold;
      text-align: center;
    }
    
    .vip-1 { background: rgba(243, 156, 18, 0.1); }
    .vip-2 { background: rgba(155, 89, 182, 0.1); }
    .vip-3 { background: rgba(231, 76, 60, 0.1); }
    
    .status-active {
      background: rgba(46, 204, 113, 0.2);
      color: #27ae60;
      padding: 4px 10px;
      border-radius: 20px;
      font-size: 0.85rem;
    }
    
    .status-inactive {
      background: rgba(149, 165, 166, 0.2);
      color: #7f8c8d;
      padding: 4px 10px;
      border-radius: 20px;
      font-size: 0.85rem;
    }
    
    .highlight {
      background: rgba(52, 152, 219, 0.05);
    }
    
    .footer {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 20px;
      background: #f8f9fa;
      border-top: 1px solid #ecf0f1;
    }
    
    .pagination {
      display: flex;
      gap: 8px;
    }
    
    .pagination button {
      background: #ecf0f1;
      border: none;
      padding: 8px 14px;
      border-radius: 6px;
      cursor: pointer;
      transition: all 0.3s ease;
    }
    
    .pagination button.active {
      background: #3498db;
      color: white;
    }
    
    .pagination button:hover {
      background: #bdc3c7;
    }
    
    .stats {
      display: flex;
      gap: 20px;
    }
    
    .stat-item {
      display: flex;
      flex-direction: column;
      align-items: center;
    }
    
    .stat-value {
      font-size: 1.5rem;
      font-weight: bold;
      color: #3498db;
    }
    
    .stat-label {
      font-size: 0.85rem;
      color: #7f8c8d;
    }
    
    @media (max-width: 768px) {
      .header h1 {
        font-size: 2rem;
      }
      
      .footer {
        flex-direction: column;
        gap: 15px;
      }
      
      .stats {
        width: 100%;
        justify-content: space-around;
      }
    }
  </style>
</head>
<body>
  <div class="container">
    <div class="header">
      <h1>VIP会员管理系统</h1>
      <p>查看会员信息、VIP等级和账户状态</p>
    </div>
    
    <div class="card">
      <div class="table-container">
        <table>
          <thead>
            <tr>
              <th>会员ID</th>
              <th>姓名</th>
              <th>VIP等级</th>
              <th>加入日期</th>
              <th>消费金额</th>
              <th>积分</th>
              <th>状态</th>
            </tr>
          </thead>
          <tbody>
            <!-- VIP 1 -->
            <tr class="highlight">
              <td>M1001</td>
              <td>张明</td>
              <td rowspan="3" class="vip-cell vip-1">VIP 1</td>
              <td>2023-05-12</td>
              <td>¥8,200</td>
              <td>820</td>
              <td><span class="status-active">活跃</span></td>
            </tr>
            <tr>
              <td>M1002</td>
              <td>李华</td>
              <td>2023-06-18</td>
              <td>¥7,500</td>
              <td>750</td>
              <td><span class="status-active">活跃</span></td>
            </tr>
            <tr class="highlight">
              <td>M1003</td>
              <td>王芳</td>
              <td>2023-04-22</td>
              <td>¥9,100</td>
              <td>910</td>
              <td><span class="status-inactive">暂停</span></td>
            </tr>
            
            <!-- VIP 2 -->
            <tr>
              <td>M2001</td>
              <td>刘强</td>
              <td rowspan="2" class="vip-cell vip-2">VIP 2</td>
              <td>2022-11-05</td>
              <td>¥24,500</td>
              <td>2450</td>
              <td><span class="status-active">活跃</span></td>
            </tr>
            <tr class="highlight">
              <td>M2002</td>
              <td>陈静</td>
              <td>2023-01-15</td>
              <td>¥21,800</td>
              <td>2180</td>
              <td><span class="status-active">活跃</span></td>
            </tr>
            
            <!-- VIP 3 -->
            <tr>
              <td>M3001</td>
              <td>赵伟</td>
              <td rowspan="2" class="vip-cell vip-3">VIP 3</td>
              <td>2022-03-08</td>
              <td>¥58,300</td>
              <td>5830</td>
              <td><span class="status-active">活跃</span></td>
            </tr>
            <tr class="highlight">
              <td>M3002</td>
              <td>孙婷</td>
              <td>2022-07-22</td>
              <td>¥62,400</td>
              <td>6240</td>
              <td><span class="status-inactive">暂停</span></td>
            </tr>
            
            <!-- VIP 4 -->
            <tr>
              <td>M4001</td>
              <td>周杰</td>
              <td class="vip-cell">VIP 4</td>
              <td>2021-12-01</td>
              <td>¥128,900</td>
              <td>12890</td>
              <td><span class="status-active">活跃</span></td>
            </tr>
          </tbody>
        </table>
      </div>
      
      <div class="footer">
        <div class="stats">
          <div class="stat-item">
            <div class="stat-value">8</div>
            <div class="stat-label">会员总数</div>
          </div>
          <div class="stat-item">
            <div class="stat-value">¥312,100</div>
            <div class="stat-label">总消费额</div>
          </div>
          <div class="stat-item">
            <div class="stat-value">31,210</div>
            <div class="stat-label">总积分</div>
          </div>
        </div>
        
        <div class="pagination">
          <button disabled>←</button>
          <button class="active">1</button>
          <button>2</button>
          <button>3</button>
          <button>→</button>
        </div>
      </div>
    </div>
  </div>
  
  <script>
    // 斑马纹效果实现
    document.addEventListener('DOMContentLoaded', () => {
      const rows = document.querySelectorAll('tbody tr');
      rows.forEach((row, index) => {
        if (index % 2 === 0) {
          row.classList.add('highlight');
        }
      });
    });
  </script>
</body>
</html>